package com.java.main.domain.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import com.java.main.domain.IdEntity.IdEntityAuto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * 
 * @Description:用户信息表
 * 
 * @author:WangYueQiang
 * 
 * @time:2017年3月16日 上午11:56:13
 */
@ApiModel
@Entity
@Table(name = "user_entry")
public class UserEntryDO extends IdEntityAuto {
	private static final long serialVersionUID = 1L;

	/** 用户id */
	@ApiModelProperty("用户id")
	@Column(nullable = false, length = 10)
	private Integer userId;

	/** 部门id */
	@ApiModelProperty("部门id")
	@NotNull
	@Column(nullable = false, length = 10)
	private Integer deptId;

	/** 职位id */
	@ApiModelProperty("职位id")
	@NotNull
	@Column(nullable = false, length = 10)
	private Integer positionId;

	/** 直系领导 */
	@ApiModelProperty("直系领导")
	@Column( length = 10)
	private Integer leaderId;

	/** 直系领导 */
	@ApiModelProperty("直系领导")
	@Column( length = 10)
	private String leaderName;
	/** 联系方式 */
	@ApiModelProperty("联系方式")
	@NotBlank
	@Column(nullable = false, length = 20)
	private String contact;

	/** 公司邮箱 */
	@ApiModelProperty(" 公司邮箱")
	@NotBlank
	@Column(nullable = false, length = 100)
	private String email;

	/** 内部分机 */
	@ApiModelProperty(" 内部分机")
	@Column(length = 20)
	private String extension;

	/** 入职标识 */
	@ApiModelProperty("入职标识，不需要传值")
	@Column(nullable = false, length = 1)
	private Integer type;
	
	/** 编号 */
	@ApiModelProperty("编号 ")
	@Column( length = 10)
	private String identifier;

	/** 账户状态 */
	@ApiModelProperty("账户状态  0正常;1禁用,不需要传值")
	@Column(nullable = false, length = 1)
	private Integer status;
	
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public Integer getPositionId() {
		return positionId;
	}

	public void setPositionId(Integer positionId) {
		this.positionId = positionId;
	}

	public Integer getLeaderId() {
		return leaderId;
	}

	public void setLeaderId(Integer leaderId) {
		this.leaderId = leaderId;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getExtension() {
		return extension;
	}

	public void setExtension(String extension) {
		this.extension = extension;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}


	public Integer getUserId() {
		return userId;
	}
	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getLeaderName() {
		return leaderName;
	}

	public void setLeaderName(String leaderName) {
		this.leaderName = leaderName;
	}
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
